package com.cls.business.service;

import com.cls.business.entity.TopicSubjectDetail;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *  Service接口
 *
 * @author slx
 * @date 2020-11-20 16:58:28
 */
public interface ITopicSubjectDetailService extends IService<TopicSubjectDetail> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param topicSubjectDetail topicSubjectDetail
     * @return PageInfo<TopicSubjectDetail>
     */
    PageInfo<TopicSubjectDetail> findTopicSubjectDetailsByTopicId(QueryRequest request, TopicSubjectDetail topicSubjectDetail, String topicClassifyCode);

    /**
     * 查询（所有）
     *
     * @param topicSubjectDetail topicSubjectDetail
     * @return List<TopicSubjectDetail>
     */
    List<TopicSubjectDetail> findTopicSubjectDetails(TopicSubjectDetail topicSubjectDetail);

    /**
     * 新增
     *
     * @param topicSubjectDetail topicSubjectDetail
     */
    void createTopicSubjectDetail(TopicSubjectDetail topicSubjectDetail);

    /**
     * 修改
     *
     * @param topicSubjectDetail topicSubjectDetail
     */
    void updateTopicSubjectDetail(TopicSubjectDetail topicSubjectDetail);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteTopicSubjectDetails(String[] ids);


    void deleteTopicSubjectDetails(TopicSubjectDetail topicSubjectDetail);

    void clearChooseByTopicId(Long topicId);
}
